package ooday03;

/**
 * Animal家族的测试类
 */
public class SwimTest {
    public static void main(String[] args) {
        Dog dog=new Dog("小狗",22,"黄");
        dog.swim();
        dog.lookhome();
        Chick chick=new Chick("小鸡",2,"黄");
        chick.drink();
        chick.swim();
        Fish fish =new Fish("鱼",1,"白");
        fish.swim();
        fish.drink();
        fish.eat();
    }
}